import java.awt.Dimension;
import java.awt.GraphicsConfiguration;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import javax.swing.JFrame;


public class Fenetre extends JFrame {
	
	private static final long serialVersionUID = -7025805736029273612L;
	public Dimension dim;
	
	public Fenetre() {
		
		GraphicsDevice device = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
		GraphicsConfiguration gc = device.getDefaultConfiguration();
		Dimension dim = new Dimension(gc.getBounds().width, gc.getBounds().height);
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		this.setSize(dim.width, dim.height);
		this.setLocation(0, 0);
		this.setUndecorated(true);
		this.setAlwaysOnTop(true);
		this.setContentPane(new Game(dim));
		
	}
	
	

}
